//
//  CALayer.h
//  Meng800
//
//  Created by 姚宗超 on 14/8/17.
//  Copyright (c) 2014年 点财网. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface CALayer (Animation)
/**
 * This method removes all animations added to a CALayer and to all layers in its sublayer hierarchy
 * (the usual -removeAllAnimations only removes the animations attached to a layer, not to its sublayers)
 */
- (void)removeAllAnimationsRecursively;

/**
 * Pause all animations attached to a layer. Does nothing if the layer was already paused
 */
- (void)pauseAllAnimations;

/**
 * Resume animations attached to a layer. Does nothing if the layer was not paused
 */
- (void)resumeAllAnimations;

/**
 * Return YES iff layer animations have been paused
 */
- (BOOL)isPaused;

@end
